/*
 * Copyright (c) [2012] - [2017] Red Hat, Inc.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *   Red Hat, Inc. - initial API and implementation
 */
package com.codenvy.plugin.webhooks.vsts.shared;

import org.eclipse.che.dto.shared.DTO;
import org.eclipse.che.dto.shared.JsonFieldName;

@DTO
public interface StorageDocument {

  public String VSTS_DOCUMENT_ETAG = "__etag";

  /**
   * Get document id.
   *
   * @return {@link String} id
   */
  String getId();

  void setId(final String id);

  StorageDocument withId(final String id);

  /**
   * Get document etag.
   *
   * @return {@link String} etag
   */
  @JsonFieldName(VSTS_DOCUMENT_ETAG)
  String getEtag();

  void setEtag(final String etag);

  StorageDocument withEtag(final String etag);

  /**
   * Get document value.
   *
   * @return {@link String} value
   */
  String getValue();

  void setValue(final String value);

  StorageDocument withValue(final String value);
}
